import java.io.Serializable;
import java.util.*;

public class CompteCourant extends CompteBancaire implements Serializable {

	private static final long serialVersionUID = 6687130754395242052L;

	private long m_numero;
	private Banque m_banque;

	public CompteCourant(final Banque b, final Titulaire t) {

		super(b, t);
		m_numero= b.numeroRegistreCptC();
		m_banque= b;
	}

	public long getNumeroCompte() {

		return m_numero;
	}

	public float executer(final String intitule, final char type, float montant) {

		return executer(new OperationBancaire(m_banque, type, intitule, montant));
	}

	public float executer(OperationBancaire op) {

		return super.executer(op);
	}
}